package Com.Hupochuan.Vo;

import java.sql.Timestamp;

import Com.Hupochuan.Uil.Util.TimeStringUtil;

/*
 * 导演表 Director
 */
public class Director {	
	//					字段名			字段类型		中文解析	缺省(Default)	备注
	private Long 		id;//			INT			ID		AUTO_INCREMENT	PRIMARY KEY
	private String 		name;//			VARCHAR(50)	导演名称	(空字符串)		UNIQUE KEY
	private Float 		weight;//		FLOAT		权重		0	
	private Timestamp 	createTime;//	DATETIME	创建时间	No default
	private	Timestamp 	updateTime;//	DATETIME	更新时间	No default	
	
	private Long 		movieCount;//	电影数量
	
	/*
	 * 获得转换的时间字符串
	 */
	public String getCreateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.createTime);
	}
	public String getUpdateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.updateTime);
	}
	
	/*
	 * 参数注入
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Long getMovieCount() {
		return movieCount;
	}
	public void setMovieCount(Long movieCount) {
		this.movieCount = movieCount;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
}
